package com.xja.dubbo.service;

import com.xja.dubbo.entity.CarShop;
import com.xja.dubbo.entity.Easybuy_product;
import com.xja.dubbo.entity.Easybuy_user;

import java.util.List;

/**
 * @author ycz
 * @create 2021-12-15-9:59
 */
public interface ProductService {
    void addProduct(Easybuy_product easybuy_product, List<String> productImageString)throws Exception;

    List<Easybuy_product> findIndexProByCategory(Integer categoryId) throws Exception;

    Easybuy_product selectByPrimaryKey(Integer id);

    void addProductCarToRedis(Easybuy_user user,Easybuy_product product,Integer number) throws Exception;

    List<CarShop> findProdFromRedis(Easybuy_user user) throws Exception;

    void deleteCarShopFromRedis(Easybuy_user user,Integer pid)throws Exception;

    //根据用户id以及商品id获去该用户购买该商品的信息
    CarShop findCarFromRedisByUidAndPid(Integer uid,Integer pid)throws Exception;
}
